// 渲染优惠卷列表
(function () {
    fetch('http://chst.vip:1234/api/getcoupon')
        .then(reason => {
            return reason.json()
        }).then(res => {
            let data = res.result
            // console.log(data);
            let ele = ''
            data.forEach(item => {
                ele += `
                <a href="conponproduct.html?conponid=${item.couponId}">
                    <img src="${item.couponImg}" alt="">
                    <p>${item.couponTitle}</p>
                </a>
                `;
            });

            $('.info').html(ele);

        });
})();